package lab02.test27;

import java.util.Scanner;

public class Test27 {
    public static void main(String[] args) {
        System.out.println("请输入一个整数.");
        Scanner sc = new Scanner(System.in);
        try {
            int number = sc.nextInt();
            System.out.println(number);
        }catch (Exception e) {
            System.out.println("你输入的不是一个整数,输入错误.");
        }
    }
}
